import { contextBridge, ipcRenderer, screen } from 'electron';

/**
 * @example
 * renderer.js
 * async function getMousePosition() {
		const { x, y } = await window.WinScreen.getMousePosition()
		return { x, y }
	}
 */
contextBridge.exposeInMainWorld('WinScreen', {
	getMousePosition: () => ipcRenderer.invoke('screen:getMousePosition')
})
